/*
    编写函数交换主函数中两个变量的内容
*/
#include <stdio.h>
void change(int *p_num,int *p_num1) {
    int temp = 0;
    temp = *p_num1;
    *p_num1 = *p_num;
    *p_num = temp;
}
int main() {
    int num = 0,num1 = 0;
    printf("请输入两个数：");
    scanf("%d%d",&num , &num1);
    change(&num,&num1);
    printf("%d %d\n", num, num1);
    return 0;
}
